<template>
  <div>
    <div class="Hellcomend-title">周末去哪了</div>
    <ul>
      <li
        class="itemli border-bottom"
        v-for="(item, index) of recommendList"
        :key="index"
      >
        <div class="itemimag">
          <img class="item-img" :src="item.img" />
        </div>
        <div class="item-info">
          <p class="item-title">{{ item.title }}</p>
          <p class="item-desc">{{ item.desc }}条评论</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "Hellkend",
  data() {
    return {
      recommendList: [
        {
          id: "001",
          img: require("../assets/img/zm1.jpg"),
          title: "长隆野生动物世界",
          desc: "158686",
        },
        {
          id: "002",
          img: require("../assets/img/zm2.jpg"),
          title: "广州长隆国际大马戏",
          desc: "158686",
        },
        {
          id: "003",
          img: require("../assets/img/zm3.jpg"),
          title: "长隆欢乐世界",
          desc: "158686",
        },
        {
          id: "004",
          img: require("../assets/img/zm4.jpg"),
          title: "广州塔小蛮腰",
          desc: "158686",
        },
      ],
    };
  },
};
</script>
<style lang="less" scoped>
.Hellcomend-title {
  margin-top: 0.1rem;
  line-height: 0.8rem;
  // background-color: #00bcd4;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  text-indent: 0.2rem;
}

.itemimag {
  overflow: hidden;
  height: 0;
  padding-bottom: 33.9%;
}
.item-img {
  width: 100%;
}

.item-title {
  line-height: 0.54rem;
  font-size: 0.32rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.item-desc {
  line-height: 0.4rem;
  color: rgb(183, 211, 82);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
</style>